package com.meida.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 公司余额
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_company_balance")
@TableAlias("bcb")
@ApiModel(value="BusCompanyBalance对象", description="公司余额")
public class BusCompanyBalance extends AbstractAllEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "companyBalanceId", type = IdType.ASSIGN_ID)
    private Long companyBalanceId;

    @ApiModelProperty(value = "公司余额")
    private BigDecimal amount;

    @ApiModelProperty(value = "授信额度")
    private BigDecimal creditAmount;

    @ApiModelProperty(value = "授信还是实付")
    private Integer amountType;

    @ApiModelProperty(value = "欠款")
    private BigDecimal arrearsAmount;

    @ApiModelProperty(value = "版本")
    private Integer version;

}
